<template>
   <div>
        <button :class="['btn','btn-' + type]">
        <slot></slot>
    </button>
   </div>
</template>

<script>
export default {
    name: 'wgy-button',
    props:{
        type :{
            type:String,
            default:'danger'
        }
    },
    data() {
        return {

        };
    },
    created() {
    },
    methods: {

    },
    //组件挂载
    components: {},
    //计算属性
    computed: {},
    //过滤器
    filters: {},
};
</script>

<style lang="scss" scoped>
.btn{
    width: 100%;
    border-radius: 10px;
}
.btn-danger{
    background-color: blueviolet;
}
.btn-primary{
    background-color: sienna;
}
.btn-warn{
    background-color: palevioletred;
}
.btn-yellow{
    background-color: yellow;
}
</style>
